package com.u3k.sdk;

import android.content.Context;
import android.content.SharedPreferences;

public class SharePrefrenceUtil
{
  public static Object getObject(Context paramContext, String paramString, Object paramObject)
  {
    Object localObject = null;
    SharedPreferences localSharedPreferences = paramContext.getSharedPreferences("u3k_sdk_app_sp", 0);
    if ((paramObject instanceof String)) {
      localObject = localSharedPreferences.getString(paramString, (String)paramObject);
    } else if ((paramObject instanceof Integer)) {
      localObject = Integer.valueOf(localSharedPreferences.getInt(paramString, ((Integer)paramObject).intValue()));
    } else if ((paramObject instanceof Boolean)) {
      localObject = Boolean.valueOf(localSharedPreferences.getBoolean(paramString, ((Boolean)paramObject).booleanValue()));
    } else if ((paramObject instanceof Float)) {
      localObject = Float.valueOf(localSharedPreferences.getFloat(paramString, ((Float)paramObject).floatValue()));
    } else if ((paramObject instanceof Long)) {
      localObject = Long.valueOf(localSharedPreferences.getLong(paramString, ((Long)paramObject).longValue()));
    }
    return localObject;
  }
}


